package sk.stuba.fiit.arthur.web.mvc.model.dao;

import java.util.ArrayList;
import java.util.Collection;

import org.springframework.dao.DataAccessException;

import sk.stuba.fiit.arthur.web.mvc.model.entity.DocumentEntity;

/**
 * Document DAO interface.
 * 
 * @author Marek Hruska
 */

//@Component("DocumentDao")
public class DocumentDaoSim implements DocumentDao {

	public Collection<DocumentEntity> findDocuments() {
		Collection<DocumentEntity> documents = new ArrayList<DocumentEntity>();
		
		DocumentEntity document1 = new DocumentEntity();
		document1.setId(1);
		document1.setName("Smernica1");
		document1.setDescription("Popis Smernica1");
		
		DocumentEntity document2 = new DocumentEntity();
		document2.setId(2);
		document2.setName("Smernica2");
		document2.setDescription("Popis Smernica2");
		
		documents.add(document1);
		documents.add(document2);
		
		return documents;
	}

	public void save(DocumentEntity documentEntity) {
		// TODO Auto-generated method stub
		
	}

	public void delete(DocumentEntity documentEntity) {
		// TODO Auto-generated method stub
		
	}

	public DocumentEntity findDocumentById(Integer id)
			throws DataAccessException {
		// TODO Auto-generated method stub
		return null;
	}

}
